package com.bdqn.service;

import com.bdqn.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface SysUserService {

    public SysUser getAccount(String account, String password);
    public SysUser getAccountExist(String account);
    int getCount();
    List<SysUser> getUserList(int pageIndex, int pageSize,String queryRealName,Integer queryRoleId);

    SysUser getById(Long userId);
    int getPwd(String oldPassword,String account);
    SysUser getSysUser(@Param("id") Integer id);
    int add(SysUser sysUser);
    int savePassword(String account,String pwd);
    int del(Integer id);
    int getAccountC(String account);
    public SysUser login(String account, String password)throws Exception;
}
